﻿using ETA.Entity;
using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ETA.EntityMappings
{
    public class FeatureBannerMap : ClassMap<FeatureBanner>
    {
        public FeatureBannerMap()
        {
            Id(x => x.FeatureBannerId);
            Map(x => x.Content);
            Map(x => x.IsDelete);
            Map(x => x.ModifyDate);
            Map(x => x.CreateDate);
            References(x => x.UploadFile).Column("UploadFileId")
            .Cascade.All();
        }
    }
}
